﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace JustinAngel.UnitedNationsNews.Framework.Helpers
{
    public static class ObservableCollectionHelper
    {
        public static ObservableCollection<T> ToObservableCollection<T>(this List<T> list)
        {
            var ReturnValue = new ObservableCollection<T>();

            foreach (var item in list)
            {
                ReturnValue.Add(item);
            }

            return ReturnValue;
        }
    }
}
